import { nanoid } from "nanoid";

export function getTempId() {
  let userTempId = localStorage.getItem("userTempId");
  if (!userTempId) {
    userTempId = nanoid();
    localStorage.setItem("userTempId", userTempId);
  }
  return userTempId;
}
